package com.lagou.niancheng.lagouservicecode.service;

/**
 * com.lagou.niancheng.lagouservicecode.service.CodeService
 *
 * @author 大犬
 * @date 2020/6/29
 */
public interface CodeService {
    /**
     * 生成验证码
     *
     * @param email 邮件
     */
    void generateVerifyCode(String email);

    /**
     * 校验验证码
     *
     * @param email      邮箱地址
     * @param verifyCode 验证码
     * @return 返回校验结果
     */
    boolean checkVerifyCode(String email, String verifyCode);
}
